#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main(){
	int a = 13;
	
	int count = 0;
	while (a){
		if (a & 1 == 1){
			count++;
		}
		a=a >> 1;
	}
	printf("%d\n", count);
	return 0;
}